<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link th:replace="blog/common::head">
    <link rel="stylesheet" th:href="@{/admin/css/index.css}">
</head>
<body>
<div>
    <div style="height: 60px;width:100%;"></div>
    <div th:fragment="top">
        <ul class="layui-nav text-primary navbar-fixed-top">
            <li class="layui-nav-item"><a th:href="@{/blog/}">首页</a></li>
            <li class="layui-nav-item" th:each="link:${links}"><a th:text="${link.getName()}"
                th:href="@{/Link/(name = ${link.getName()})}"></a>
            </li>
            <!--登录之后会显示个人收藏-->
            <li class="layui-nav-item"><a th:href="@{/newLink}">收藏</a></li>
            <li class="layui-nav-item I"><a href="">管理员</a></li>
            <li class="layui-nav-item I"><a href="">我们</a></li>
            <li class="layui-nav-item I" th:if="${session.user}">
                <a th:href="@{/blog/blogadmin}"><img th:src="@{/admin/img/1.png}" class="layui-nav-img"
                                                     th:text="${session.user}"></a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:">个人</a></dd>
                    <dd><a href="javascript:">修改</a></dd>
                    <dd><a th:href="@{/logout}">退出</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item I" th:if="not ${session.user}"><a th:href="@{/blog/toLogin}">登录</a></li>
        </ul>
    </div>
</div>

<iframe th:src="@{${session.link}}" style="width: 100%;height: 760px;overflow: auto"></iframe>
<script th:src="@{/Ui/layui-v2.6.4/layui/layui.js}"></script>



</body>
</html>